public class Dog {
    public String name; //名字
    public int age;  //年龄
    public double tall;  //身高

    //狗的行为
    public void bark() {
        System.out.println("汪汪汪~~~");
    }

    public void wag() {
        System.out.println("摇尾巴~~~");
    }

    public static void main(String[] args) {

        Dog s1 = new Dog();
        Dog s2 = new Dog();

        s1.name = "大黄";
        s1.age = 6;
        s1.tall = 0.4;
        s1.bark();
        s1.wag();

        s2.name = "旺财";
        s2.age = 8;
        s2.tall = 0.45;
        s2.bark();
        s2.wag();

    }
}
